﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Learn1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        void Response(string message)
        {
            this.richTextBox1.AppendText(message + "\r\n");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            UserInfo ui = new UserInfo() { Name = "testName" };
            Point pt = new Point() { X = 88 };

            Response(string.Format("Name:{0} X:{1}", ui.Name, pt.X));

            UserInfo.Modify(ui);
            Point.Modify(pt);

            Response(string.Format("Name:{0} X:{1}", ui.Name, pt.X));
            
        }
        private void button2_Click(object sender, EventArgs e)
        {
            string a = "123";
            string b = String.Concat("123", "2333");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            CalssA a = new CalssA("aaaa");
            Response(a.Name);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            string a = "ddddaadaacccc123";
            Response(System.Text.RegularExpressions.Regex.Matches(a, "a").Count.ToString());
        }

        private void button5_Click(object sender, EventArgs e)
        {
            List<string> listString = new List<string>();
            foreach (var item in listString)
            {
                listString.IndexOf(item);
            }
        }
    }
    
}
